System Prompt
A system prompt is a special instruction or message provided to an AI language model at the start of a session to set the context, behavior, or constraints for the conversation. It helps guide the model's responses throughout the interaction.
Why Use a System Prompt?
- Establishes the model's role or persona (e.g., "You are a helpful assistant.")
- Sets boundaries or rules for the conversation
- Provides background information or context
Example
System Prompt: "You are a friendly customer support agent for an online bookstore."
With this prompt, the model will answer questions as if it were a support agent, staying in character and focusing on book-related topics.
System prompts are essential for shaping the initial behavior and tone of AI models in many applications.